﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CSharpTesting
{
    class Program
    {
        static void Main(string[] args)
        {
            /*
            StreamWriter writer = File.CreateText(@"M:\VS Temp Data\simulated_similarity_data_big.txt");
            Random random_id = new Random(), random_similarity = new Random();
            int max_id = 150000;
            for (int i = 0; i < 2000000; i++)
            {
                int id1 = random_id.Next(max_id);
                int id2 = random_id.Next(max_id);
                while (id2 == id1)
                {
                    id2 = random_id.Next(max_id);
                }
                double similarity = random_similarity.NextDouble()+0.8;
                writer.WriteLine( id1 + "\t" + id2 + "\t"+ similarity);
                //Console.WriteLine(id1 + "\t" + id2 + "\t" + similarity);
            }
            writer.Close();*/
            HashSet<UInt64> set = new HashSet<ulong>();
            ulong i = 0;
            ulong upbound = (ulong)Convert.ToInt64(args[0]);
            int counter = 0;
            int temp = Convert.ToInt32(args[1]);
            while (i++ < upbound)
            {
                set.Add(i);
                if (counter++ == temp)
                {
                    Console.WriteLine(i);
                    counter = 0;
                }

            }
        }
    }
}
